/*
 * Transaction.h
 *
 *  Created on: Mar 24, 2010
 *      Author: mike
 */

//*************************************************************************
// File Name: Transaction.h
// Definition of Transaction class - a class that processes every
// transaction made from CheckoutService class via setting its properties
// and can report the transaction settings back to user.
// "Group 3"
// CS 1C
// March 25, 2010
// Group Project: SuperWarehouse
// Due: March 25, 2010
// - KZ's comment
//*************************************************************************

#ifndef TRANSACTION_H_
#define TRANSACTION_H_

#include <string>

using namespace std;

class Transaction {
public:
	Transaction();
	Transaction(time_t, int, string, float, int);
	virtual ~Transaction();
	void setTransData();
	time_t getTransDate();
	string getItemName();
	int getQty();
	float getPrice();
	int getCustID();
	float getTotal();

	bool operator==(const Transaction &other) const;
	Transaction &operator=(const Transaction &rhs);

protected:
	time_t transDate;
	int custID;
	string itemName;
	float unitPrice;
	int quantity;
};

#endif /* TRANSACTION_H_ */
